package com.zhangxin.aiInterview.service;

import com.zhangxin.aiInterview.model.dto.interview.AnalyzeHrInterviewRequest;
import com.zhangxin.aiInterview.model.entity.HrInterview;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangxin.aiInterview.model.entity.Position;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ZX
 * @description 针对表【hr_interview(hr面试记录)】的数据库操作Service
 * @createDate 2025-05-18 15:49:13
 */
public interface HrInterviewService extends IService<HrInterview> {

    /**
     * 分析hr面
     *
     * @param analyzeHrInterviewRequest
     * @param request
     */
    void analyzeHrInterview(AnalyzeHrInterviewRequest analyzeHrInterviewRequest, HttpServletRequest request, Boolean isFull, Long fullInterviewId);

    /**
     * 生成hr面试记录
     * @param userId
     * @param position
     * @param positionName
     * @param techFieldName
     * @param companyId
     * @param resumeId
     * @param interviewerGender
     * @param languageMode
     * @param interviewerType
     * @param isFull
     * @param fullInterviewId
     * @return
     */
    Long generateHrInterview(Long userId, Position position, String positionName, String techFieldName, Long companyId, Long resumeId, String interviewerGender, String languageMode, String interviewerType, boolean isFull, Long fullInterviewId);

    /**
     * 删除HR面试记录
     * @param hrInterviewId
     * @param request
     * @return
     */
    boolean deleteHrInterview(Long hrInterviewId, HttpServletRequest request);
}
